<%@ taglib prefix="s" uri="/struts-tags" %>
<%@page  pageEncoding="UTF-8" %>
<script type="text/javascript">
	$(document).ready(function() {
		$.getJSON('http://localhost:8080/Subjects/user/<s:property value="#session.SESSION_USER.id"/>.json', function(data) {
			$('#userName').html(data['username']);
		});
	});
</script>
<div>
	<p>Logged in as <b id="userName"></b></p>
</div>
<s:a action="searchSelect">Search</s:a> | <s:a action="selectSubjectType">Add new subject</s:a>